home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
Games
/
penguinpass.swf
/
scripts
/
frame_16
/
PlaceObject2_86_76
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
2KB
|
54 lines
onClipEvent(enterFrame){
if(_root.score < 0)
{
_root.score = 0;
}
if(_root.placeposition > 0 && _root.gotshape == false)
{
_root.placeposition = 0;
}
if(_root.placeposition > 0 && _root.gotshape == true && _root.board[_root.placeposition] == 0 && _root.letclick == true)
{
_root.fx.gotoAndPlay("click");
_root.board[_root.placeposition] = 1;
_root.cursorshape.gotoAndStop(1);
_root.gotshape = false;
_root["pos" + _root.placeposition].placeshape = _root.cursorshape.placeshape;
_root["pos" + _root.placeposition].gotoAndStop(2);
_root.turn = _root.turn + 1;
_root.gotshape = true;
_root.cursorshape.placeshape = _root.nextshape.placeshape;
_root.cursorshape.gotoAndStop(2);
_root.nextshape.placeshape = _root["level" + _root.level][_root.turn + 1];
_root.nextshape.gotoAndStop(1);
_root.nextshape.gotoAndStop(2);
gs = _root["pos" + _root.placeposition].placeshape;
gy = _root.gy;
gx = _root.gx;
_root.grid[gy * 45 + gx * 3] = _root.block1[gs];
_root.grid[gy * 45 + (gx * 3 + 1)] = _root.block2[gs];
_root.grid[gy * 45 + (gx * 3 + 2)] = _root.block3[gs];
_root.grid[gy * 45 + 15 + gx * 3] = _root.block4[gs];
_root.grid[gy * 45 + 15 + (gx * 3 + 1)] = _root.block5[gs];
_root.grid[gy * 45 + 15 + (gx * 3 + 2)] = _root.block6[gs];
_root.grid[gy * 45 + 30 + gx * 3] = _root.block7[gs];
_root.grid[gy * 45 + 30 + (gx * 3 + 1)] = _root.block8[gs];
_root.grid[gy * 45 + 30 + (gx * 3 + 2)] = _root.block9[gs];
_root.populate();
if(_root["level" + _root.level][_root.turn] == 16)
{
_root.tthe = true;
gotshape = false;
_root.completed = true;
_root.placeposition = 0;
a = 0;
while(a <= 10)
{
_root.strip();
a++;
}
_root.penguin.gotoAndPlay(2);
}
}
}